package com.hezhiqin.sentineldemo;


import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2020-02-24 17:36
 */
@RestController
public class SentinelController {

    @SentinelResource("sayHello")
    @GetMapping("/sayHello")
    public String hello(String s){
        return s;
    }

}
